package com.yekong.house.biz.mapper;

import com.yekong.house.common.model.*;
import com.yekong.house.common.page.PageParams;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseMapper {

    List<House> selectPageHouses(@Param("house") House house, @Param("pageParams")PageParams pageParams);

    public Long selectPageCount(@Param("house") House query);

    public HouseUser selectSaleHouseUser(@Param("id") Long houseId);

    public int insert(House house);

    List<Community> selectCommunity(Community community);

    int insertUserMsg(UserMsg userMsg);

    public HouseUser selectHouseUser(@Param("userId")Long userId, @Param("id") Long houseId, @Param("type") Integer integer);

    int insertHouseUser(HouseUser houseUser);

    void updateHouse(House updateHouse);

    public  int downHouse(Long id);

    void deleteHouseUser(@Param("id") Long id, @Param("userId") Long id2,@Param("type") Integer value);
}
